#
# Be sure to run `pod lib lint IMSApiModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'IMSApiModule'
  s.version          = '0.4.2'
  s.summary          = '简短描述'

  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = '详细描述'

  s.homepage         = 'http://www.qq.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Cansing' => 'Cansing@163.com' }
  s.source           = { :git => 'https://gitee.com/cansng/imsapi-module.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '12.0'
  s.static_framework = true

  s.dependency 'MBProgressHUD', '1.1.0'
  s.dependency 'ReactiveObjC', '3.1.1'
  s.dependency 'MJRefresh', '3.7.5'
  s.dependency 'CocoaAsyncSocket', '7.6.5'
  s.dependency 'Reachability', '3.2'
  s.dependency 'ZipArchive', '1.4.0'
  s.dependency 'AFNetworking', '~> 3.2.1'
  s.dependency 'FFLoading'

  # s.dependency 'AKReactNative', '0.59.9.5'
  # s.dependency 'AlicloudALBBOpenAccount', '3.4.0.53'
  # s.dependency 'AlicloudPushIoT', '1.9.5.5'
  # s.dependency 'AlicloudUtils', '1.3.9'
  # s.dependency 'IMSApiClient', '1.6.9'
  # s.dependency 'IMSAuthentication', '1.4.3'
  # s.dependency 'IMSBoneKit', '1.3.11.11'
  # s.dependency 'IMSBreezeSDK', '1.7.6'
  # s.dependency 'IMSDeviceCenter', '1.13.3'
  # s.dependency 'IMSDeviceGateway', '1.6.8'
  # s.dependency 'IMSIotSmart', '1.2.8'
  # s.dependency 'IMSMobileChannel', '1.6.12'
  # s.dependency 'IMSThingCapability', '1.8.8'

  s.dependency 'IMSThingCapability', '1.8.8'
  s.dependency 'AKReactNative', '0.59.9.5'
  s.dependency 'AlicloudALBBOpenAccount', '3.4.0.53'
  s.dependency 'IMSBoneKit', '1.3.11.11'
  s.dependency 'IMSIotSmart', '1.2.8'

  # 依赖本地库和远程库的方法一样
  s.dependency 'JMCommonLib'
  # 依赖本地库和远程库的方法一样,但要在 Podfile 里面加入路径
  # pod 'JMLibCommon', :path => './JMLibCommon/JMLibCommon.podspec'

  s.xcconfig = {
    'OTHER_LDFLAGS' => '-ld_classic',
    # 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Headers/Public/**"',
    # 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64',
    # 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) SUPPORT_MULTI_DEVICES ALCSCLIENT WITH_TLS __APPLE__ WITH_THREADING',
    # 'CLANG_CXX_LANGUAGE_STANDARD' => 'compiler-default', 
    # 'CLANG_CXX_LIBRARY' => 'compiler-default'
  }

  # rm -rf ~/Library/Developer/Xcode/DerivedData/
  # pod deintegrate
  # pod update

  #子文件夹
  s.subspec 'IMSApi' do | ss |
      ss.source_files = 'IMSApiModule/IMSApi/*.{h,m}'

      #子文件夹
      ss.subspec 'SecurityGuardPicture' do | sss |
          sss.resources = 'IMSApiModule/IMSApi/SecurityGuardPicture/**/*.jpg'
      end

      #子文件夹
      ss.subspec 'IMSHUD' do | sss |
          sss.source_files = 'IMSApiModule/IMSApi/IMSHUD/**/*.{h,m}'
      end

      #子文件夹
      ss.subspec 'launch' do | sss |
          sss.source_files = 'IMSApiModule/IMSApi/launch/**/*.{h,m}'
      end
  end

end